<!-- saved from url=(0040)http://ep.zjenpu.com/memberorderlist.asp -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport"
          content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">


    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <title>我的订单</title>
    <link rel="stylesheet" href="/css/Jingle.css">
    <link rel="stylesheet" href="/css/app1.css">
    <script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
    <script>
        function confirmdel(id) {
            if (confirm("确定删除订单？")) {
                var url = "{{urlHome('order','postOrderDel')}}";
                $.post(url,{id:id},function(res){
                    if(res.status) {
                        window.location.href =   "{{urlHome('order','getOrderList')}}";
                    }
                });
            }
        }

    </script>
</head>
<body>

<div id="aside_container">
</div>
<div id="section_container">
    <section id="index_section" class="active">
        <header>
            <nav class="left">
                <a href="{{urlHome('index','getIndex')}}" data-icon="previous" data-target="back"
                   style="color:#FFFFFF"><img src="/image/backn.png">返回</a></nav>
            <h1 class="title" style="color:#ffffff;">我的订单</h1>
            <nav class="right">
                <a data-target="section" data-icon="info" href="##"
                   id="manualBtn"> </a></nav>

        </header>
        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"
               style="border:1px solid #CCCCCC;margin-top:10px;font-size:12px;">
            <tbody>
            <tr>
                <td width="35%" height="44">
                    <div align="center">订单号</div>
                </td>
                <td width="25%">
                    <div align="center">金额</div>
                </td>
                <td width="15%">
                    <div align="center">件数</div>
                </td>
                <td width="25%">
                    <div align="center">状态</div>
                </td>
            </tr>
            @if(!empty($rows))
                @foreach($rows as $v)
            <tr bgcolor="#f0f0f0">
                <td height="44" onclick='javascript:window.location.href="{{urlHome('order','getOrderDetail',['id'=>$v['id']])}}";'>
                    <div align="center">{{$v['order_sn']}}&nbsp;
                        @if($v['status'] == 0)
                            <font color="blue">未发货</font>
                        @else($v['status'] == 1)
                            <font color="green">己发货</font>
                        @endif
                    </div>
                </td>
                <td onclick='javascript:window.location.href="{{urlHome('order','getOrderDetail',['id'=>$v['id']])}}";'>
                    <div align="center" style="color:#FF0000">{{$v['pay_money']}}</div>
                </td>
                <td onclick='javascript:window.location.href="{{urlHome('order','getOrderDetail',['id'=>$v['id']])}}";'>
                    <div align="center">{{$v['goods_num']}}</div>
                </td>
                <td style="line-height:22px;">
                    <div align="center">

                        @if(!$v['status'])
                            <font color="red">未发货</font>
                            <br>
                            <a href="javascript:confirmdel({{$v['id']}})">删除</a>
                        @else
                            <button style="background-color:lightgray" onclick="window.location.href='http://m.kuaidi100.com/index_all.html?type={{$v['shipping_company']}}&postid={{$v['shipping_code']}}&callbackurl={{action('Home\OrderController@getOrderList')}}'"><font color="blue">查看物流</font></button>
                            <br>
                            {{--@if($v['shipping_company'])--}}
                                {{--{{$v['shipping_company']}}<br>--}}
                            {{--@endif--}}
                        @endif
                    </div>
                </td>
            </tr>
                @endforeach
                @endif
            </tbody>
        </table>
        <br>
    </section>
</div>
</body>
</html>